<?php 
//set your session for security...
session_start(); 
//#################################################################################################################
if (array_key_exists('username_profile', $_SESSION) && !empty($_SESSION['username_profile'])) {  
//#################################################################################################################
?>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="nidza.js"></script>
<script type="text/javascript" src="Xnidza.js"></script>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="js_bonus/fix_body.js"></script>
<script type="text/javascript" src="jq_galerije/slides.min.jquery.js"></script>

        
<script type="text/javascript" src="http://www.ponticstar.com/js/projects/burning-words-1.0-min.js"></script>

<link rel="stylesheet" type="text/css" href="css/homepage.css">

<script>

		$(function(){
			$('#slides').slides({
				//preload: true,
				//preloadImage: 'img/loading.gif',
				//play: 5000,
				//pause: 2500,
			});
			$('#slides_1').slides();
			var NIK = document.getElementsByClassName('pagination')[0];
			NIK.setAttribute("style","display:none;");
			NIK = document.getElementsByClassName('pagination')[1];
			NIK.setAttribute("style","display:none;")
		 
		});
	
</script>

<script>




Application = {
	name : "abstract",
	copyright : "zlatnaspirala@gmail.com",
    platform : ["mobile","samsung_tablet", "ipad", "iphone", "html5"],
	setAppName : function(name){  this.name = name; } ,
	setAppPlatform : function(p0,p1,p2,p3,p4 ){ this.platform = [p0,p1,p2,p3,p4]; } ,
	WIDTH_DEVICE :  window.innerHeight  ,
	HEIGHT_DEVICE : window.innerWidth 
};
</script>


</head>
<body style="background-color:black;">
<div id="ROOT_DIV" class="root_div" >
<div id="MAIN_DIV" class="main_div" style="height:100px;" >
Welcome , <?php    echo $_SESSION['username_profile']; ?> !!!
<div class="header" >
<script type="text/javascript">
   var burning_words = new PonticStar.BurningWords;
   burning_words.show("welcome to abstract nidza.js", "FFF021", "Verdana", 30, "000000", 0, "slow");
</script><br/>
Dobro dosli na ovaj sajt , sajt dobre nade . Napisao Nikola Lukic zlatnaspirala@gmail.com 2013 godina.
<div id="detect_div"></div>                                          
</div>
<div style ="margin-left:5px;margin-top: 20px;width:47%;border:solid red;float:left;">
 <div id="slides" style="float:left; width:100%">
			<a href="#" class="prev" style="float:left;" ><img src="http://slidesjs.com/examples/standard/img/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a> 
            <a href="#" class="next" style="float:right;" ><img src="http://slidesjs.com/examples/standard/img/arrow-next.png" width="24" height="43" alt="Arrow Next"></a>
			<div class="slides_container" style="border:solid red;border-radius:10px 10px 10px 10px;" >
                <div>
                   Welcome here abstract created by Nikola Lukic<br/>GAte is open
                </div>
                <div>
                  Your user name :  <?php    echo $_SESSION['username_profile']; ?>
                </div>
                <div>
                   See  zlatnaspirala.netfast.org
                </div> 
            </div>

			
        </div>
</div>

<div style ="margin-left:5px;margin-top: 20px;width:47%;border:solid red;float:left;">
 <div id="slides_1" style="float:left; width:100%">
			<a href="#" class="prev" style="float:left;" ><img src="http://slidesjs.com/examples/standard/img/arrow-prev.png" width="24" height="43" alt="Arrow Prev"></a> 
            <a href="#" class="next" style="float:right;" ><img src="http://slidesjs.com/examples/standard/img/arrow-next.png" width="24" height="43" alt="Arrow Next"></a>
			<div class="slides_container" style="border:solid red;border-radius:10px 10px 10px 10px;" >
                <div>
                   Welcome here abstract created by Nikola Lukic<br/>GAte is open
                </div>
                <div>
                    zlatnaspirala@gmail.com
                </div>
                <div>
                    zlatnaspirala.netfast.org
                </div>
                <div>
                    Welcome here
                </div>
            </div>

			
        </div>
 
</div>
 
<div style="clear:both;"></div>

		<a href="#" onclick='GETAJAX("getallusers.php","allusers" );' >GET </a>
<div id="allusers" style="overflow:auto;width:200px;height:200px;border:solid red">Get all users !</div>
<a href="#" onclick=' popuniPODATKE();AJAX("ajax/points.php",UPIT,"points" );' >GET </a>
<div id="points_div" style="overflow:auto;width:200px;height:200px;border:solid red">
<input id="user_name" value="100" type="text" />
<input id="game_name" value="100"/>
<input id="points" value="100"/>  POINTS !</div>


</div>
</div>
</body>
</html>

<script>
// set height && detect browser
document.getElementById('MAIN_DIV').style.height = parseInt(Application.HEIGHT_DEVICE / 2.1 ) + "px";
DETECTBROWSER();

var UPIT = "&game_name=" + E('game_name').value + "&points=" + E('points').value ;
console.log(UPIT);

function popuniPODATKE(){
UPIT =  "&game_name=" + E('game_name').value + "&points=" + E('points').value ;
}

</script>
<?php
//#################################################################################################################
}  // end
//#################################################################################################################
?>